import 'package:lyf_shop/hi_net/base_request.dart';
import 'package:lyf_shop/hi_net/hi_net_adapter.dart';
import 'package:lyf_shop/hi_net/hi_response.dart';

class MockAdapter extends HiNetAdapter {
  @override
  Future<HiNetResponse<T>> send<T>(BaseRequest request) {
    // TODO: implement send
    return Future<HiNetResponse<T>>.delayed(Duration(milliseconds: 1000), () {
      return HiNetResponse<T>(
          statusCode: 200, data: {"code": 0, "message": "success"} as T);
    });
  }
}
